<template>
  <div id="mybug">
    <title2 title="我创建的Bug"></title2>
    <div id="bugs">
      <bug-list :bugs="bugs"/>
    </div>
  </div>
</template>

<script>
import { bugs } from "./data/global";
import BugList from "./BugList";
import title2 from "./title";
export default {
  name: "ProjectDetailMine",
  components:{BugList,title2},
  props:["projectId"],
  data(){
    return{
      bugs:bugs
    }
  },
  mounted(){
    this.init()
  },
  methods:{
    init(){
      let config = {
        url:"/cbug/bug/getUserCreateBug",
        method:"post",
        data:{
          token:"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJle",
          projectId:this.projectId
        }
      }
    },
    color(state,grade){
      return state?'#909399':this.gradeToColor[grade]
    }
  }
}
</script>

<style scoped>
#bugs{
  padding:0 10px;
}

#bugs p{
  color:black;
  font-size:20px;
  line-height:60px;
  text-align: center;
}

</style>
